﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/authentication/Site.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="NibbleOil.Web.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <h2>
        Log In
    </h2>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="False" 
     onloggingin="LoginUser_LoggingIn"  TitleText="Iniciar Sesion"
        Width="248px">    
        <LayoutTemplate>                      
            <div class="passrecoveryTable">               
                <fieldset class="texto" style="border:0;">                    
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" CssClass="texto" AssociatedControlID="UserName">Email:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="MsgError" ErrorMessage="Email requerido." ToolTip="Email requerido." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" CssClass="texto" AssociatedControlID="Password">Clave:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="MsgError" ErrorMessage="Clave requerida." ToolTip="Clave requerida." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>                                                                       
                        &nbsp;<asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="MsgError"  ValidationGroup="LoginUserValidationGroup"/>                        
                        <p>
                            <asp:CheckBox ID="RememberMe" runat="server" Visible="false" />
                            <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" 
                                CssClass="inline" Visible="false">Mantenerme logueado</asp:Label>
                        </p>
                    </p>
                </fieldset>                
                <table width="100%">
                    <tr>
                        <td align="right">                            
                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Ingresar" ValidationGroup="LoginUserValidationGroup"/>
                        </td>
                    </tr>
                </table>
            </div>            
        </LayoutTemplate>      
        <TitleTextStyle CssClass="titulo2"/>
    </asp:Login>
    <asp:CustomValidator ID="CustomValidator1" runat="server" ValidationGroup="LoginUserValidationGroup"></asp:CustomValidator>
</asp:Content>
